import request from "@/utils/request";

export function SylUpload (data){
    return request({
        url: 'upload/first',
        headers: {
            isToken: false,   // false为不设置token  true为设置
            repeatSubmit: true,    // true为防止重复提交
            'Context-Type': 'multipart/form-data'
        },
        method: 'post',
        data: data
    })
}

export function getUpload (params){
    return request({
        url: 'upload/get',
        headers: {
            isToken: false,   // false为不设置token  true为设置
            repeatSubmit: true,    // true为防止重复提交
            'Context-Type': 'multipart/form-data'
        },
        method: 'get',
        params
    })
}

export function addUpload (params){
    return request({
        url: 'upload/get',
        headers: {
            isToken: false,   // false为不设置token  true为设置
            repeatSubmit: true,    // true为防止重复提交
            'Context-Type': 'application/x-www-form-urlencoded'
        },
        method: 'get',
        params
    })
}
